package com.dingreading.cloud.subject.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author Administrator
 * @since 2024-08-01
 */
@Data
@Table("stores")
public class Stores implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    private String address;

    private Float area;

    private Long companyId;

    private Long divisionId;

    private Integer enabled;

    private Integer initializeBooks;

    private String lat;

    private String lng;

    private String phone;

    private Long regionId;

    private String remarks;

    private String storeName;

    private String uid;

    /**
     * 合作类型 50叮叮书房 40佳音 30绘本 20悦读吧
     */
    private String cooperationType;

    /**
     * 运营类型 100自营  80联营  50品牌加盟  40产品加盟  20课程合作（悦读吧）
     */
    private Integer operationType;

    private String corpUid;

    private String authRange;

    private String city;

    /**
     * 合同编号
     */
    private String contractCode;

    private String county;

    private String province;

    private String operateStaffName;

    private String operateStaffPhone;

    private String operateStaffUid;

    /**
     * 是否启动
     * 1.已启动 0.未启动
     */
    @ApiModelProperty(value = "是否启动")
    private Integer activated;

    /**
     * 启动时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "启动时间")
    private Date activatedTime;

    /**
     * 门店保护范围类型 1.圆形 2.区域
     */
    @ApiModelProperty(value = "门店保护范围类型")
    private Integer protectType;

    /**
     * 门店保护范围半径
     */
    @ApiModelProperty(value = "门店保护范围半径")
    private Integer protectRadius;

    /**
     * 签约日期
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "签约日期")
    private Date signDate;

    /**
     * 门店科目
     */
    @ApiModelProperty(value = "门店科目")
    private String subjectType;

    /**
     * 门店服务
     */
    @ApiModelProperty(value = "门店服务")
    private String projectType;

    /**
     * 叮叮学院
     */
    private String courseType;
}
